<?php
/**
 * returns sorted array of all classes 
 * in the system in the format of: "DEPT###"
 */

 
include('../class_lib/cc_manager.php');

$cc = new cc_manager();
$courses_raw = $cc->get_course_names();
$courses = array();
foreach ($courses_raw as $course) {
	$courses[] = $course["Code"].$course["Number"];
}
sort($courses);
echo json_encode($courses);

?>